package com.bbu.javaexam.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bbu.javaexam.dao.AnswerMapper;
import com.bbu.javaexam.domain.vo.AnswerVO;
import com.bbu.javaexam.service.AnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Alex
 * @version 1.0.0
 * @ClassName AnswerServiceImpl.java
 * @Description TODO
 */
@Service
public class AnswerServiceImpl implements AnswerService {
    @Autowired
    private AnswerMapper answerMapper;

    @Override
    public IPage<AnswerVO> findAll(Page<AnswerVO> page) {
        String countId = page.getCountId();
        return answerMapper.findAll(page);
    }
}
